package cn.goktech.sports.modules.contentManage.service;

import cn.goktech.sports.common.entity.Page;
import cn.goktech.sports.common.entity.R;
import cn.goktech.sports.modules.contentManage.entity.BusinessTypeEntity;

import java.util.Map;

/**
 * 业务类型表
 *
 * @author duanyu<>
 */
public interface BusinessTypeService {

	/**
	 * 分页查询
	 *
	 * @param params
	 * @return
	 */
	Page<BusinessTypeEntity> listBusinessType(Map<String, Object> params);

	/**
	 * 新增
	 *
	 * @param businessType
	 * @return
	 */
	R saveBusinessType(BusinessTypeEntity businessType);

	/**
	 * 根据id查询
	 *
	 * @param id
	 * @return
	 */
	R getBusinessTypeById(Long id);

	/**
	 * 修改
	 *
	 * @param businessType
	 * @return
	 */
	R updateBusinessType(BusinessTypeEntity businessType);

	/**
	 * 删除
	 *
	 * @param id
	 * @return
	 */
	R batchRemove(Long[] id);

	/**
	 * 根据内容id获取
	 *
	 * @param entity
	 * @return
	 */
	BusinessTypeEntity getByContentId(BusinessTypeEntity entity);

	/**
	 * 根据内容id获取
	 *
	 * @param contentId
	 * @return
	 */
	R listByContentId(Long contentId);
}
